﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="bodyDetail.aspx.cs" Inherits="cwdz.bodyDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 100%;">
            <tr>
                <td>
                    &nbsp;
                </td>
                <td style="width: 760px; text-align: center;">
                    好收成超市应付结算单税额明细表
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td style="width: 760px">
                    <table style="width: 100%;">
                        <tr>
                            <td style="width: 100px; text-align: inherit;">
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td style="text-align: right">
                                <asp:Label ID="showDateLabel" ForeColor="Red" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px; text-align: inherit;">
                                单&nbsp; 据&nbsp; 号：
                            </td>
                            <td>
                                <asp:Label ID="BillNoLabel" runat="server" />
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px; text-align: inherit;">
                                结 算 部门：
                            </td>
                            <td>
                                <asp:Label ID="OrgNameLabel" runat="server"></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px; text-align: inherit;">
                                供应商编码：
                            </td>
                            <td>
                                <asp:Label ID="SupCodeLabel" runat="server"></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px; text-align: inherit;">
                                供应商名称：
                            </td>
                            <td>
                                <asp:Label ID="SupNameLabel" runat="server"></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px; text-align: inherit;">
                                合 同 编码：
                            </td>
                            <td>
                                <asp:Label ID="HtCodeLabel" runat="server"></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px; text-align: inherit;">
                                合 同 名称：
                            </td>
                            <td>
                                <asp:Label ID="HtNameLabel" runat="server"></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td style="width: 760px">
                    <%--<asp:GridView ID="bodyGridView" runat="server" AutoGenerateColumns="False" BackColor="White"
                        BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataSourceID="SqlDataSource"
                        EnableModelValidation="True" ForeColor="Black" GridLines="Vertical" Width="860px"
                        Font-Size="Small" ShowFooter="True" 
                        onrowdatabound="bodyGridView_RowDataBound">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:BoundField DataField="YWBILLNO" HeaderText="业务单据号" 
                                SortExpression="YWBILLNO" HtmlEncode="False" />
                            <asp:BoundField DataField="REMARK" HeaderText="备注（业务类型）" 
                                SortExpression="REMARK" HtmlEncode="False">
                                <ItemStyle Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="WJTOTAL" HeaderText="无税进价金额" 
                                SortExpression="WJTOTAL" HtmlEncode="False">
                                <ItemStyle HorizontalAlign="Right" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="JTAXTOTAL13" HeaderText="进项税额（13%）" 
                                SortExpression="JTAXTOTAL13" HtmlEncode="False">
                                <ItemStyle HorizontalAlign="Right" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="JTAXTOTAL17" HeaderText="进项税额（17%）" 
                                SortExpression="JTAXTOTAL17" HtmlEncode="False">
                                <ItemStyle HorizontalAlign="Right" />
                            </asp:BoundField>
                            <asp:BoundField DataField="JTAXTOTAL" HeaderText="进项税额（合计）" 
                                SortExpression="JTAXTOTAL" HtmlEncode="False">
                                <ItemStyle HorizontalAlign="Right" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="HJTOTAL" HeaderText="含税进价金额" 
                                SortExpression="HJTOTAL" HtmlEncode="False">
                                <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                        </Columns>
                        <FooterStyle BackColor="#CCCC99" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" Font-Size="Small" />
                        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                        <RowStyle BackColor="#F7F7DE" />
                        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    </asp:GridView>--%>
                    <asp:GridView ID="GridView_bodyDetail" runat="server" BackColor="White" 
                        BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                        EnableModelValidation="True" ShowFooter="True" Font-Size="Small" 
                        onrowdatabound="GridView_bodyDetail_RowDataBound" Width="760px">
                        <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                        <RowStyle BackColor="White" ForeColor="#330099" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                    </asp:GridView>
                    
                    <div style="text-align: right">
                        <%-- 分别汇总税额 --%>
                    </div>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td style="width: 760px">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="3">
                    <hr class="page_break" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td style="width: 760px">
                    <%-- SelectCommand="SELECT YWORGNAME,BILLNO,YWBILLNO,REMARK,CASE JTAXRATE WHEN 17 THEN SUM(JTaxTotal) END AS TaT17,CASE JTAXRATE WHEN 13 THEN SUM(JTaxTotal) END AS TaT13, SUM(WJTOTAL) AS WJTOTAL,SUM(HJTOTAL) AS HJTOTAL FROM TACPJSJXBODY WHERE (BILLNO = ?) GROUP BY YWORGNAME,BILLNO,YWBILLNO,REMARK,JTAXRATE ORDER BY YWBILLNO" --%>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
